Linux: Learn Linux In One Week With Step By Step Tutorials by Dr. Michael Lombard

Linux: Learn Linux In One Week With Step By Step Tutorials by Dr. Michael Lombard

Author:Dr. Michael Lombard
Language: eng
Format: azw3
Published: 2017-07-24T07:00:00+00:00


Redirecting Output

In Linux, the output of a particular command can be redirected by use of the greater than symbol (>). Suppose you need to create a file with a list of countries. The file will be named “countries”:

Open the terminal and then type:

cat > countries

You can then proceed to type in the list of countries that you want. Hit the return key after each name and once done, hit ^D to end the input. The following screenshot best demonstrates this:

To view the contents of this file, just type the following command on the terminal:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.